# Contributor: Carlo Landmeter <clandmeter@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-lingua-en-numbers-ordinate
pkgver=1.05
pkgrel=2
pkgdesc="Go from cardinal (53) to ordinal (53rd)"
url="https://metacpan.org/release/Lingua-EN-Numbers-Ordinate"
arch="noarch"
license="GPL-1.0-or-later OR Artistic-1.0-Perl"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/N/NE/NEILB/Lingua-EN-Numbers-Ordinate-$pkgver.tar.gz"
builddir="$srcdir/Lingua-EN-Numbers-Ordinate-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="ff9d2b49e933c3975ce4598a2ac4719c52a2c3e07e3ff6bc82cdb43ec05a63e1c2931d49e23e526aee75cb1a3c368e7692459f6d6487f16dc3b6c36ee9a8337e  Lingua-EN-Numbers-Ordinate-1.05.tar.gz"
